#include "tracsettings.h"


TracSettings *TracSettings::m_instance = 0;


TracSettings::TracSettings()
{
    m_instance = this;
}


TracSettings::~TracSettings()
{
    m_instance = 0;
}


TracSettings *TracSettings::instance()
{
    if(!m_instance)
        m_instance = new TracSettings;

    return m_instance;
}


QString TracSettings::username() const
{
    return m_username;
}

void TracSettings::setUsername(const QString &username)
{
    m_username = username;
}


QString TracSettings::password() const
{
    return m_password;
}

void TracSettings::setPassword(const QString &password)
{
    m_password = password;
}

QString TracSettings::hostName() const
{
    return m_hostName;
}

void TracSettings::setHostName(const QString &hostName)
{
    m_hostName = hostName;
}

QString TracSettings::binary() const
{
    return m_binary;
}

void TracSettings::setBinary(const QString &binary)
{
    m_binary = binary;
}

QString TracSettings::cloneCommand() const
{
    return m_cloneCommand;
}
void TracSettings::setCloneCommand(const QString &cloneCommand)
{
    m_cloneCommand = cloneCommand;
}

QString TracSettings::cloneUrl() const
{
    return m_cloneUrl;
}

void TracSettings::setCloneUrl(const QString &cloneUrl)
{
    m_cloneUrl = cloneUrl;
}

QString TracSettings::visibleCloneUrl() const
{
    return m_visibleCloneUrl;
}

void TracSettings::setVisibleCloneUrl(const QString &visibleCloneUrl)
{
    m_visibleCloneUrl = visibleCloneUrl;
}

QString TracSettings::workingPath() const
{
    return m_workingPath;
}

void TracSettings::setWorkingPath(const QString &workingPath)
{
    m_workingPath = workingPath;
}

QString TracSettings::checkoutDirectory() const
{
    return m_checkoutDirectory;
}

void TracSettings::setCheckoutDirectory(const QString &checkoutDirectory)
{
    m_checkoutDirectory = checkoutDirectory;
}

QString TracSettings::projectFile() const
{
    return m_projectFile;
}

void TracSettings::setProjectFile(const QString &projectFile)
{
    m_projectFile = projectFile;
}

QString TracSettings::projectName() const
{
    return m_projectName;
}

void TracSettings::setProjectName(const QString &projectName)
{
    m_projectName = projectName;
}

QString TracSettings::projectIdentifier() const
{
    return m_projectIdentifier;
}

void TracSettings::setProjectIdentifier(const QString &projectIdentifier)
{
    m_projectIdentifier = projectIdentifier;
}

QString TracSettings::projectDescription() const
{
    return m_projectDescription;
}

void TracSettings::setProjectDescription(const QString &projectDescription)
{
    m_projectDescription = projectDescription;
}

QString TracSettings::versionControlSystem() const
{
    return m_versionControlSystem;
}

void TracSettings::setVersionControlSystem(const QString &versionControlSystem)
{
    m_versionControlSystem = versionControlSystem;
}

bool TracSettings::isPublicProject() const
{
    return m_isPublicProject;
}

void TracSettings::setIsPublicProject(const bool isPublicProject)
{
    m_isPublicProject = isPublicProject;
}

QString TracSettings::vcsSystem() const
{
    return m_vcsSystem;
}

void TracSettings::setVcsSystem(const QString &vcsSystem)
{
    m_vcsSystem = vcsSystem;
}
